/**
 * 通用热门推荐类型
 * @params url 请求地址
 * @params data 请求参数
 */

import { request } from '@/utils/request'
import type { PageParams } from '@/types/global'

type HotParams = PageParams & { subType?: string }

export const getHotRecommendAPI = (url: string, data?: HotParams) => {
  return request({
    method: 'GET',
    url,
    data,
  })
}
